class Course < ActiveRecord::Base
  has_many :courseCards, :class_name => 'CoursesStudent', :foreign_key => 'course_id'
  has_many :teachers, :class_name => 'User', :foreign_key=> 'course_id'
  has_many :students, :through => :courseCards
end
